package com.sanploy.common.domain.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sanploy.common.domain.FreightModel;
import com.sanploy.common.domain.GoodsAttr;

import java.util.List;

/**
 * Created by zhu yingzhi on 2017/9/26.
 * @author yingzhi zhu
 * 购物车VO对象
 */
public class CartVo {
    /**
     * 购物车id
     */
    private Long id;
    /**
     * goods的id
     */
    private Long goods_id;
    /**
     * 商品名字
     */
    private String goods_name;
    /**
     * 商品的单价 带上了goods_attr的价格
     */
    private double goods_price;
    /**
     * 商品的数量
     */
    private int goods_number;
    private String goods_attr;//商品参数名 用，分隔
    private String goods_attrs_id;//商品的参数Id 用，分隔
    private String goods_attrs_price;//商品的参数价格 用，分隔
    private String goods_img;//商品图片
    private boolean can_buy=true;//是否可以购买
    private int goods_inventory;//商品库存

    private FreightModel freight;//商品库存
    private boolean is_free;//是否包邮


    public FreightModel getFreight() {
        return freight;
    }

    public void setFreight(FreightModel freight) {
        this.freight = freight;
    }

    public boolean isIs_free() {
        return is_free;
    }

    public void setIs_free(boolean is_free) {
        this.is_free = is_free;
    }

    public int getGoods_inventory() {
        return goods_inventory;
    }

    public void setGoods_inventory(int goods_inventory) {
        this.goods_inventory = goods_inventory;
    }

    public String getGoods_attrs_id() {
        return goods_attrs_id;
    }

    public void setGoods_attrs_id(String goods_attrs_id) {
        this.goods_attrs_id = goods_attrs_id;
    }

    public String getGoods_attrs_price() {
        return goods_attrs_price;
    }

    public void setGoods_attrs_price(String goods_attrs_price) {
        this.goods_attrs_price = goods_attrs_price;
    }

    public String getGoods_img() {
        return goods_img;
    }

    public void setGoods_img(String goods_img) {
        this.goods_img = goods_img;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Long goods_id) {
        this.goods_id = goods_id;
    }


    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public double getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(double goods_price) {
        this.goods_price = goods_price;
    }

    public int getGoods_number() {
        return goods_number;
    }

    public void setGoods_number(int goods_number) {
        this.goods_number = goods_number;
    }

    public String getGoods_attr() {
        return goods_attr;
    }

    public void setGoods_attr(String goods_attr) {
        this.goods_attr = goods_attr;
    }

    public boolean isCan_buy() {
        return can_buy;
    }

    public void setCan_buy(boolean can_buy) {
        this.can_buy = can_buy;
    }
}
